﻿using System;
using System.ComponentModel.DataAnnotations;

namespace LJSheng.Data
{
    /// <summary>
    /// 商品分类
    /// </summary>
    public class CPFL
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public Guid gid { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime addtime { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int sort { get; set; }

        /// <summary>
        /// 是否显示
        /// </summary>
        public int show { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public int zt { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [StringLength(50)]
        public string name { get; set; }

        /// <summary>
        /// 简介
        /// </summary>
        [StringLength(800)]
        public string explain { get; set; }

        /// <summary>
        /// url=https://pastebin.com/api/api_post.php
        /// </summary>
        [StringLength(200)]
        public string url { get; set; }
        /// <summary>
        /// api_dev_key=OSe1R2WAGj3AuN-YuhMYU5FZI5US80hm
        /// </summary>
        [StringLength(200)]
        public string api_dev_key { get; set; }
        /// <summary>
        /// api_option = paste
        /// </summary>
        [StringLength(200)]
        public string api_option { get; set; }
        /// <summary>
        /// api_paste_code=9f4b5142776f3183c20a0147 20.10. qingfeng |2021.10.30|
        /// </summary>
        [StringLength(200)]
        public string api_paste_code { get; set; }
    }
}
